Use updated evtchn interface to allow console reconnect after xend restart.
u32 dom;
int port1 = 0, port2 = 0;
- if ( !PyArg_ParseTuple(args, "i", &dom) )
+ if ( !PyArg_ParseTuple(args, "i|ii", &dom, &port1, &port2) )
return NULL;
xup = PyObject_New(xu_port_object, &xu_port_type);
def createPort(self, dom, remote_port=0):
"""Create a port for a channel to the given domain.
"""
- return xu.port(dom, remote_port)
+ return xu.port(dom, 0, remote_port)
def channelFactory():
"""Singleton constructor for the channel factory.